home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 52
/
Amiga Format AFCD52 (Issue 136, May 2000).iso
/
-serious-
/
programming
/
c
/
icu-1.3.1
/
icuapps
/
locexp
/
tools
/
emitresourcefromfile.sh
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
2000-02-23
|
320b
|
21 lines
#!/bin/sh
if [ $# -ne 3 ]; then
echo 1>&2 "Usage: $0 resource_tag source_file encoding"
exit 1
fi
if [ ! -f $3 ]; then
echo 1>&2 "$0: can't open file $3"
exit 1
fi
echo
echo "// From $3 ($2)"
echo " $1 {"
echo -n " \""
uconv -f $2 -t UTF16_BigEndian $3 | escapeForBundle
echo -n "\""
echo " }"
echo